'use strict'
const db = uniCloud.database()

exports.main = async (event, context) => {
  let res = await db.collection('users').field({ name: true }).orderBy('_id', 'desc').get()
  return res
}